<?php
    include '../../JHeader.php';

    if(isset($_GET['id']))
    {
        require_once '../../Database/Database.php';
        $series_id = $_GET['id'];

        $db = new Database();
        $db->Connect();
        $series = $db->Select('Series', 'ID_Series = ' . $series_id);

        if($series)
        {
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Rennen hinzufügen | <?php echo $series[0]->Name ?></title>
    </head>
    <body>
        <form name="add_race" method="POST" action="<?php echo $_SERVER['SELF'] ?>">
           
        </form>
    </body>
</html>
<?php
        }
        else
        {
            echo 'Ung&uuml;ltige Serien ID.';
        }
    }
    else
    {
        echo 'ERROR';
    }
?>